<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="common/css/allRole.css"/>
<link type="text/css" rel="stylesheet" href="common/css/role.css">
</head>
<body>
 <div class="panel admin-panel">
<div class="padding border-bottom">
  <ul class="search" style="padding-left:10px;">
<li> <a class="button border-main icon-plus-square-o" onclick="window.location.href='addRolePage.action'" > 添加内容</a></li>
  </ul>
</div>
<table class="table table-hover text-center">
	<tr class="role_head">
	 		<th width="100" style="text-align:left; padding-left:20px;">ID</th>
			<th>角色名称</th>
			<th>角色描述</th>
			<th>添加时间</th>
			<th>权限</th>
			<th>操作</th>
		</tr>
	
 <c:if test="${!empty roleList }">  
                <c:forEach items="${roleList}" var="role"> 
                <tr class="main_info">
				<td style="text-align:left; padding-left:20px;">
				<input type="checkbox" name="id[]" value="" />${role.roleId }</td>
				<td>${role.roleName }</td> 
				<td>${role.roleDescription}</td>
				<td>${role.addDate}</td>
				<td>${role.accessName}</td>
				<td>
				 <div class="button-group">
				 <a class="button border-main" onclick="window.location='updateRolePage.action?roleId=${role.roleId}'">
		 		 <span class="icon-edit"></span> 修改</a> 
		 		 <a class="button border-red" onclick="window.location='logicalDeleteRole.action?roleId=${role.roleId}'">
				 <span class="icon-trash-o"></span>删除</a>
				 </td>  
				</tr>
                </c:forEach>
                </c:if>
                </table>
	 <tr>
	  <td colspan="8">
	 <div class="pagelist">
    	<a href="Page.action?number=1">首页</a>
		<a href="Page.action?number=${sessionScope.number-1}">上一页</a>
		<a href="Page.action?number=${sessionScope.number+1}">下一页</a>
		<a href="Page.action?number=${sessionScope.count}">尾页</a>
		<font>当前${sessionScope.number}/${sessionScope.count}页</font>
	</div>
	</td>
     </tr>
<br>
</div>
</body>
</html>